Repository navigation
Add certificate files and tolerate unknown resource types - #86
Merged
Merged
Conversation
The server lists `is_ca`, `is_self_signed` and `not_valid_after` for each certificate, and no `sha1_fingerprint`, so a required `sha1_fingerprint` failed every certificate list. Also note that `CertificateFile` requires server version 3.26.23, and share one set of `ResourceTypeName` values between the resources listing and project delete conflicts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AaronBarnes07
approved these changes
Nov 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CertificateFile, the file type for X.509 certificates that DataMasque trusts to verify a server. It uploads toapi/files/certificates/with thecertificate_fileform field, and reads the details of each certificate (is_ca,is_self_signed,not_valid_after,sha1_fingerprint) intocertificates.certificatestoResourceTypeName, solist_resourcesreads certificate files.list_resourcesnow leaves out a resource type the client does not know, andProjectDeleteConflict.typeisNonefor one. Before this change, a server that listed a new resource type madelist_resourcesraiseValueError.Tests
uv run pytest: 803 passed.make lint(ruff, ruff format, mypy): passes.